//
//  HeaderCellOfInfomation.m
//  A段项目
//
//  Created by dllo on 16/2/27.
//  Copyright © 2016年 Scott. All rights reserved.
//

#import "HeaderCellOfInfomation.h"

@interface HeaderCellOfInfomation ()


@end

@implementation HeaderCellOfInfomation

- (void)dealloc {
    
    [_leftLabel release];
    
    [_rightImage release];
    
    [super dealloc];
    
}

- (instancetype) initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
    
    self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
    
    if (self) {
        
        self.leftLabel = [[UILabel alloc] init];
        
        [self.contentView addSubview:self.leftLabel];
        
        [_leftLabel release];
        
        self.rightImage = [[UIImageView alloc] init];
        
        [self.contentView addSubview:self.rightImage];
        
        [_rightImage release];
        
    }
    return self;
}

- (void)layoutSubviews {
    
    [super layoutSubviews];
     
    self.leftLabel.frame = CGRectMake(20, 0, 100, self.frame.size.height);
    
    self.rightImage.frame = CGRectMake(self.frame.size.width - self.frame.size.height - 10, 2, self.frame.size.height, self.frame.size.height - 4);
    
    self.rightImage.layer.cornerRadius = 40;
    self.rightImage.layer.masksToBounds = YES;
    
    self.rightImage.backgroundColor = [UIColor lightGrayColor];
    
}

- (void)awakeFromNib {
    // Initialization code
}

- (void)setSelected:(BOOL)selected animated:(BOOL)animated {
    [super setSelected:selected animated:animated];

    // Configure the view for the selected state
}

@end
